package extends_package3;

public class Test1 {
    public static void main(String[] args) {
        Zi z = new Zi();
        z.ziShow();
    }
}

class Ye {
    String name = "Ye";
}

class Fu extends Ye {
    String name = "Fu";
    String hobby = "喝茶";
}

class Zi extends Fu {
    String name = "Zi";
    String game = "吃鸡";

    public void ziShow() {
        String name = "ziShow";
        System.out.println(name);//ziShow
        System.out.println(this.name);//Zi
        System.out.println(super.name);//Fu

        System.out.println(game);//吃鸡
        System.out.println(this.game);

        System.out.println(super.hobby);//喝茶
        System.out.println(this.hobby);
        System.out.println(hobby);
    }
}
